<?php
if (!defined('APP_PATH')) {
	define('APP_PATH', $_SERVER['DOCUMENT_ROOT']."/bdACPA");
}
require_once(APP_PATH.'/required.php');


$idMarquePuce = intval($_REQUEST["idMarquePuce"]);

//set content type and xml tag
header("Content-type:text/xml");
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
echo "<complete>";
$types = $TYPEPUCE_DAO->rechercher_type_puce(null,$idMarquePuce);
echo "<option value='0' text='à définir'/>";
if ($types != null){
	foreach ($types as $type)
	{
		echo  "<option value='".$type->idtypepuce."' text='".remove_carspeciaux($type->libelle)."'/>";
	}
}
echo "</complete>";

?>